export default {
  isCollapse: (state) => state.app.isCollapse,
  sideWidth: (state) => state.app.sideWidth,

  loginId: (state) => state.user.loginId,
  token: (state) => state.user.token,
  username: (state) => state.user.username,
  avatar: (state) => state.user.avatar,
  role: (state) => state.user.role,
  permissions: (state) => state.user.permissions,
  dictTypes: (state) => state.user.dictTypes,

  routes: (state) => state.permission.routes,
  addRoutes: (state) => state.permission.addRoutes,
  defaultRoutes: (state) => state.permission.defaultRoutes,
  topBarRouters: (state) => state.permission.topBarRouters,
  sidebarRouters: (state) => state.permission.sidebarRouters,

  visitedViews: (state) => state.tagsView.visitedViews,
  cachedViews: (state) => state.tagsView.cachedViews,
};
